# polygon object example

The following example shows the polygon object:

`<polygon name="Polygon4" height="85" width="78" left="175" top="154" visible="true" wallpaper="false" isReferenceObject="false" backStyle="solid" backColor="#F0F000" foreColor="#00C000" lineStyle="solid" lineWidth="8" patternStyle="none" patternColor="#00C000" path="194 189 179 234 248 235 249 158 219 196">`

`<animations>`

`<animateVisibility expression="If TestTag2 > 10 Then 0 Else 1" expressionTrueState="invisible" />`

`<animateHorizontalSlider expression="TagS2" horizontalOffsetMin="10" horizontalOffsetMax="100">`

`<defaultExpressionRange />`

`</animateHorizontalSlider>`

`<animateFill expression="TestTag2" fillMin="0" fillMax="100" fillDirection="up" insideOnly="false">`

`<defaultExpressionRange />`

`</animateFill>`

`<animateColor expression="If TestTag2 < 30 Then 0 Else 1" blinkRate="1">`

`<color value="0" foreBehavior="blink" foreColor1="blue" foreColor2="cyan" backBehavior="blink" backColor1="red" backColor2="#FFFF80" />`

`<color value="1" foreBehavior="blink" foreColor1="#8C008C" foreColor2="#FFC0FF" backBehavior="blink" backColor1="lime" backColor2="#008C00" />`

`</animateColor>`

`</animations>`

`</polygon>`

## See also

Drawing objects: polygon object

polygon object attributes and elements